/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.space.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fuyao.cloud.common.core.model.BaseEntity;
import com.fuyao.cloud.common.data.mybatis.SearchOp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 区域管理
 *
 * @author liyue
 * @date 2021-11-09 15:09:42
 */
@Data
@TableName("fy_room_regional")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "区域管理")
public class RoomRegional extends BaseEntity<RoomRegional> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键Id")
    private Long id;

    /**
     * 唯一编码
     */
    @ApiModelProperty(value="唯一编码")
    private String unid;

    /**
     * 资产编码
     */
    @ApiModelProperty(value="资产编码")
    private String assetNumber;

    /**
     * 所属父区域名称
     */
    @ApiModelProperty(value="所属父区域名称")
    private String parentName;
    /**
     * 所属父区域名称
     */
    @ApiModelProperty(value="所属父区域编码")
    private String parentCode;

    /**
     * 所属父区域ID
     */
    @ApiModelProperty(value="所属父区域ID")
    private Long parentId;

    /**
     * 区域名称
     */
    @ApiModelProperty(value="区域名称")
    @TableField(condition = SqlCondition.LIKE)
    private String name;

    /**
     * 区域编码
     */
    @ApiModelProperty(value="区域编码")
    private String code;

    /**
     * 区域全编码
     */
    @ApiModelProperty(value="区域全编码")
    private String fullcode;
    /**
     * 区域全名称
     */
    @ApiModelProperty(value="区域全名称")
    private String fullname;

    /**
     * 占地面积
     */
    @ApiModelProperty(value="占地面积")
    private String coverArea;

    /**
     * 建筑面积
     */
    @ApiModelProperty(value="建筑面积")
    private String floorage;

    /**
     * 区域地址
     */
    @ApiModelProperty(value="区域地址")
    @TableField(condition = SqlCondition.LIKE)
    private String address;

    /**
     * 邮政编号
     */
    @ApiModelProperty(value="邮政编号")
    private String postalCode;

    /**
     * 管理单位ID
     */
    @ApiModelProperty(value="管理单位ID")
    private Integer mgmtUnitId;

    /**
     * 管理单位名称
     */
    @ApiModelProperty(value="管理单位名称")
    private String mgmtUnitName;

    /**
     * 门牌号
     */
    @ApiModelProperty(value="门牌号")
    private String houseNumber;

    /**
     * 备注
     */
    @ApiModelProperty(value="备注")
    private String remarks;

    /**
     * 数据权限编码，从土地、区域、楼栋等编码检索
     */
    @ApiModelProperty(value="数据权限编码，从土地、区域、楼栋等编码检索")
    private String dataCode;

    /**
     * 排序号
     */
    @ApiModelProperty(value="排序号")
    private Integer ordernumber;

    /**
     * 经度
     */
    @ApiModelProperty(value="经度")
    private String x;

    /**
     * 纬度
     */
    @ApiModelProperty(value="纬度")
    private String y;

    /**
     * 所属土地ID
     */
    @ApiModelProperty(value="所属土地ID")
    private Long landId;

    /**
     * 所属土地名称
     */
    @ApiModelProperty(value="所属土地名称")
    private String landName;

    /**
     * 层级
     */
    @ApiModelProperty(value="层级")
    private Integer level;

}
